package org.manager.properties;

import java.io.Serializable;
import java.util.List;

import org.manager.generic.Repository.GenericRepository;

public interface PropertiesRepository extends GenericRepository<Properties> {

	public List<Properties> page(Properties pro , int start,  int limit);
	
	public int totalRecord(Properties pro);
	
	public Serializable addProperties(Properties pro);
	
	/**
	 * 检查业务代码是否重复.
	 * @param pro
	 * @return 可以使用 true. otherwise false.
	 */
	public boolean checkBusinessCode(Properties pro);
	
	public List<Properties> selectByParent(String parentId);
	
	public List<Properties> selectByProperty(String propertyId);
}
